﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;


namespace mscook.core.domain
{
    public class Chef : Entity
    {

        [Required(ErrorMessage = "厨师名必填")]
        [StringLength(10, MinimumLength =2, ErrorMessage = "厨师名必须为2-10位")]
        public virtual string Name
        {
            get;
            set;
        }

      
        public virtual Hotel Hotel
        {
            get;
            set;
        }

        public virtual string Position
        {
            set;
            get;
        }
        public virtual string Address
        {
            set;
            get;
        }
        [Required(ErrorMessage = "编辑者必填")]
        [StringLength(10, MinimumLength = 1, ErrorMessage = "编辑者姓名必须为1-10位")]
        public virtual string Editor
        {
            set;
            get;
        }

        //[Required(ErrorMessage = "总结必填")]
        //[StringLength(500, MinimumLength = 1, ErrorMessage = "总结必须为800字之内")]
        public virtual string Summary
        {
            set;
            get;
        }

        public virtual string ImageName
        {
            get;
            set;
        }

        public virtual Iesi.Collections.Generic.ISet<CookBook> CookBooks
        {
            get;
            set;
        }

        public virtual string Description
        {
            get;
            set;
        }
    }
}
